<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>js 基础知识 演示</title>
</head>

<body>
    <p>一段文字 1</p>
    <p>一段文字 2</p>
    <p>一段文字 3</p>

    <script src="./jquery-demo.js"></script>
    <script>
        const $p = new jQuery('p')
        console.log($p.get(1))
        $p.each((elem) => console.log(elem.nodeName))
        $p.on('click', () => alert('clicked'))
    </script>
</body>

</html>